package com.ctgu.model.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author yiMa
 * @since 2023-07-05
 */
@Getter
@Setter
  @ApiModel(value = "Employee对象", description = "")
public class Employee extends User implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("员工编号")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("角色id")
      private String roleId;

      @ApiModelProperty("头像")
      private String img;

      @ApiModelProperty("账号状态（1正常 0停用）")
      private String status;

      @ApiModelProperty("员工姓名")
      private String name;

      @ApiModelProperty("性别")
      private String gender;

      @ApiModelProperty("出生日期")
      private LocalDate birthday;

      @ApiModelProperty("身份证号")
      private String idCard;

      @ApiModelProperty("邮箱")
      private String email;

      @ApiModelProperty("电话号码")
      private String phone;

      @ApiModelProperty("联系地址")
      private String address;

      @ApiModelProperty("所属部门")
      private Integer depId;

      @ApiModelProperty("职位ID")
      private Integer posId;

      @ApiModelProperty("最高学历")
      private String tiptopDegree;

      @ApiModelProperty("所属专业")
      private String specialty;

      @ApiModelProperty("毕业院校")
      private String school;

      @ApiModelProperty("入职日期")
      @TableField(updateStrategy= FieldStrategy.IGNORED)
      private LocalDate beginDate;

      @ApiModelProperty("在职状态")
      private String workState;

      @ApiModelProperty("公司Id")
      private Integer companyId;

      @ApiModelProperty("账户名")
      private String userName;

      @ApiModelProperty("密码")
      private String password;


}
